package com.san.dissertation.dao.service.impl;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.san.dissertation.dao.repository.ProcessPathRepository;
import com.san.dissertation.dao.repository.ProcessRepository;
import com.san.dissertation.bpm.model.Process;

public class Test {
	
	
	public static void main(String[] args) {
		
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(
                "daoContext.xml");
        DAOServiceImpl dao =(DAOServiceImpl)ctx.getBean("daoServiceImpl");
        
        ProcessPathRepository pathRepository=dao.getProcessPathRepository();
        ProcessRepository processRepository=dao.getProcessRepository();
        
        
        /*Process p= new Process();
        p.setKey("sankaranand Srinivasan");
        repository.save(p);
        
        
        System.out.println(repository.count());*/
        
      //  repository.updateTaskEndById("sankarMakerChecker", "startevent1");     
        
		//repository.deleteAll();
        
        Process process=processRepository.findByKey("sankarMakerChecker");
        
        //pathRepository.updateStartTaskEnd(process);
	}


}
